package com.woniuxy.services;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.Lost;
import lombok.Data;

import java.util.List;
import java.util.Map;

public interface LostService {
    PageInfo<Lost> selectAll(Integer currentPage, Integer pageSize);
    PageInfo<Lost> selectByCnameOrStatus(Integer currentPage, Integer pageSize,Integer lost_status,String com_name,String user_name);
    Lost selectById(Integer lost_id);
    int updateByPrimaryKeySelective(Lost record);

    //客户流失折线图（按年份查询）
    List<Map<String, Integer>> getLostCount(Integer year);

    //按照客户经理或公司名称查询流失记录
    List<Lost> getLostByCidOrUid(Integer user_id, Integer com_id);
}

